{include file="admin/top.php" subject='purchases'}
{include file="purchases/top.php" subject='purchases'}

<div id="content">
  <form method="post">
  {purchases limit=1 id=$segment.purchases_id}
    <table width="100%" border="0" cellpadding="5" cellspacing="0" id="editor">
      <tr>
        <td width="100" class="title">仓库:</td>
        <td class="content">{$purchases.shop}</td>
      </tr>
      <tr>
        <td class="title">产品名称:</td>
        <td class="content">{$purchases.product} {$purchases.spec} / {$purchases.unit}&nbsp;</td>
      </tr>
      <tr>
        <td class="title">单价:</td>
        <td class="content">{$purchases.pricebuy|string_format:"%.2f"} 元</td>
      </tr>
      <tr>
        <td class="title">数量:</td>
        <td class="content">{$purchases.number+0}</td>
      </tr>
      <tr>
        <td class="title">总价:</td>
        <td class="content"><strong>{$purchases.pricebuy*$purchases.number|string_format:"%.2f"} 元</strong></td>
      </tr>
      <tr>
        <td class="title">入库时间:</td>
        <td class="content">{$purchases.thedate|date_format:"%Y-%m-%d"}</td>
      </tr>
      <tr>
        <td class="title">供货商:</td>
        <td class="content">{$purchases.supplier}&nbsp;</td>
      </tr>
      <tr class="noline">
        <td class="title">备注说明:</td>
        <td class="content">{$purchases.memo|nl2br}&nbsp;</td>
      </tr>
    </table>
    
    <div class="fr mt10">
    <a href="#this" class="btn" onclick="location.href='{$site_admin}m=inventory&s=purchases.php'">返回</a> 
    </div>
    {/purchases}
  </form>
</div>
{include file="admin/bottom.php"}
</body>
</html>
